﻿/**
 *  sprite + action = script
 */
function SetLocation(imgsrc,scrpite){
	//Script
	var a = new locaction();
	a.sprite = scrpite;
	var img = new Image(); img.src =imgsrc;
	a.animimgs = new Array();
	a.animimgs.push(img);
	scrpite.actions.push(a);
	if (scrpite.isPlayer){
		setGotoIcon(scrpite.Stepx,scrpite.Stepy);
		Addaction(null,gotoicon);
	}
} 

//禁止混淆 Begin
//window['SetLocation'] = SetLocation; 
//禁止混淆 END
